/**
 * 
 */
package lt.vin.exaatto.client.events;

import lt.vin.exaatto.shared.Chat;

import com.google.gwt.event.shared.GwtEvent;

/**
 * @author Vincentas
 *
 */
public class ManagerAddedEvent extends GwtEvent<ManagerAddedHandler> {

	private final String member;
	
	private final Chat chat;
	
	public ManagerAddedEvent(Chat chat, String member) {
		this.chat = chat;
		this.member = member;
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ManagerAddedHandler> getAssociatedType() {
		return ManagerAddedHandler.type;
	}

	@Override
	protected void dispatch(ManagerAddedHandler handler) {
		handler.newManager(chat, member);
	}
}
